package chapter8.extend_.improve_;

import chapter8.extend_.Graduate;
import chapter8.extend_.Pupil;

public class Extends01 {
    public static void main(String[] args) {
        Pupil pupil = new Pupil();
        pupil.name = "小明22";
        pupil.age = 10;
        pupil.setScore(60);
        pupil.testing();
        pupil.showInfo();

        Graduate graduate = new Graduate();
        graduate.name="大明11";
        graduate.age = 100;
        graduate.setScore(100);
        graduate.testing();
        graduate.showInfo();


    }
}
